package com.group.three.mapper;

import com.group.three.entity.MemberAddDTO;
import com.group.three.entity.MemberVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface MemberMapper {
    //会员列表
    List<MemberVO> getAll(int pageNum, int pageSize);

    //会员信息详情
    MemberVO getMember(String id);

    //增加会员
    int addMember(@Param("member") MemberAddDTO member);

    //修改会员状态
    int updateMemberStatus(@Param("memberId")String memberId, @Param("disabled")String disabled);
}
